package com.shungen.apicloud.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shungen.apicloud.mapper.InterfaceLabelMapper;
import com.shungen.apicloud.model.entity.InterfaceLabel;
import com.shungen.apicloud.service.InterfaceLabelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author shungen
* @description 针对表【interface_label】的数据库操作Service实现
* @createDate 2024-08-05 22:14:15
*/
@Service
public class InterfaceLabelServiceImpl extends ServiceImpl<InterfaceLabelMapper, InterfaceLabel>
    implements InterfaceLabelService {

    @Override
    public List<InterfaceLabel> getByIdList(List<Long> interfaceLabelIdList) {
        LambdaQueryWrapper<InterfaceLabel> interfaceLabelLambdaQueryWrapper = new LambdaQueryWrapper<>();
        interfaceLabelLambdaQueryWrapper.in(InterfaceLabel::getId,interfaceLabelIdList);
        List<InterfaceLabel> interfaceLabels = this.baseMapper.selectList(interfaceLabelLambdaQueryWrapper);
        return interfaceLabels;
    }

    @Override
    public List<InterfaceLabel> getAllInterfaceLabel() {
        return this.baseMapper.selectList(null);
    }
}




